<html>
    <meta charset="utf-8" />
    <body>
<?php
include 'weixin.class.php';
$weixin = new class_weixin_adv("wx873faf7512b61145", "c1efbe6e57bd6cb78ad29ecec928295c");
$news = array();
$news[] = array("thumb_media_id"=>"nNgSqILdUa5qk_ue_vksK0SssU1ufKdiPpkDF1xgy9hH2IwqX7bTtHY1rKpi263s",
  "author"=>"",
  "title"=>"微信公众平台开发",
  "content_source_url" =>"",
  "content" =>"",
  "digest" =>""
  );
$news[] = array("thumb_media_id"=>"nNgSqILdUa5qk_ue_vksK0SssU1ufKdiPpkDF1xgy9hH2IwqX7bTtHY1rKpi263s",
  "author"=>"方倍工作室",
  "title"=>"微信公众平台开发入门教程",
  "content_source_url" =>"http://m.cnblogs.com/99079/3153567.html?full=1",
  "content" =>"<div>
<p>本教程是微信公众平台的入门教程，它将引导你完成如下任务：</p>
<ol>
<li>1. 创建新浪云计算平台应用</li>
<li>2. 启用微信公众平台开发模式</li>
<li>3. 基础接口消息及事件</li>
<li>4. 微信公众平台PHP SDK</li>
<li>5. 微信公众平台开发模式原理</li>
<li>6. 开发天气预报功能</li>
</ol>
</div>",
  "digest" =>"微信公众平台开发经典的入门教程，学习微信公众平台开发必经之路！"
  );
$a="http://map.baidu.com/mobile/webapp/walk/list/qt=walk&sn=1%24%24%24%2412729032.200000%2C3530742.200000%24%24%E6%88%91%E7%9A%84%E4%BD%8D%E7%BD%AE%24%24&en=1%24%24%24%2412729295.200000%2C3530451.900000%24%24atm%24%24&sc=218&ec=218&c=218&pn=0&rn=5&searchFlag=walk&version=3&wm=1/foo=bar&vt=map&traffic=off&evtson=off#walk/list/qt=walk&sn=1%24%24%24%2412729032.200000%2C3530742.200000%24%24%E6%88%91%E7%9A%84%E4%BD%8D%E7%BD%AE%24%24&en=1%24%24%24%2412729295.200000%2C3530451.900000%24%24atm%24%24&sc=218&ec=218&c=218&pn=0&rn=5&searchFlag=drive&version=3&wm=1/foo=bar&vt=map&traffic=off&evtson=off";
echo urldecode($a);
var_dump($news);
//var_dump($weixin->upload_news($news));
?>
    </body>
</html>